package org.jeecg.modules.zcgl.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.system.base.entity.DelFlagBaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 用户报修维修处理反馈信息
 * @Author: hhr
 * @Date:   2020-08-13
 * @Version: V1.0
 */
@Data
@TableName("zcgl_repair_feedback_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="zcgl_repair_feedback_log对象", description="用户报修维修处理反馈信息")
public class RepairFeedbackLog extends DelFlagBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	/**报修信息*/
//    @Excel(name = "资产名称", width = 15, dictTable = "zcgl_repair_info", dicText = "repair_title", dicCode = "id")
//    @Dict(dictTable = "zcgl_repair_info", dicText = "repair_title", dicCode = "id")
    @ApiModelProperty(value = "报修信息")
    private String repairId;

    /**资产名称*/
    @Excel(name = "资产名称", width = 15, dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id")
    @Dict(dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id")
    @ApiModelProperty(value = "资产名称")
    private String assetId;
    /**资产明细*/
    @Excel(name = "资产明细", width = 15, dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id")
    @Dict(dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id")
    @ApiModelProperty(value = "资产明细")
    private String assetSubIds;
    /**客户名称*/
    @Excel(name = "客户名称", width = 15, dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ';', `name`, phone )", dicCode = "id")
    @Dict(dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ' ', `name`, phone )", dicCode = "id")
    @ApiModelProperty(value = "客户名称")
    private String customerId;

    /**反馈的微信用户信息*/
    @Excel(name = "反馈的微信用户信息", width = 15, dictTable = "zcgl_attention_info", dicText = "nickname", dicCode = "id")
    @Dict(dictTable = "zcgl_attention_info", dicText = "nickname", dicCode = "id")
    @ApiModelProperty(value = "反馈的微信用户信息")
    private String attentionId;

	/**处理说明*/
	@Excel(name = "处理说明", width = 15)
    @ApiModelProperty(value = "处理说明")
    private String feedbackContent;
	/**处理时间*/
	@Excel(name = "处理时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "处理时间")
    private Date feedbackDate;
	/**维修金额*/
	@Excel(name = "维修金额", width = 15)
    @ApiModelProperty(value = "维修金额")
    private java.math.BigDecimal money;

	/**处理人*/
	@Excel(name = "处理人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @ApiModelProperty(value = "处理人")
    private String handleUserId;
}
